package com.dhecp.project.logstics.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.business.domain.LogisticsMmodeDetails;
import com.dhecp.project.business.domain.LogsticsPatternDetails;

import java.util.List;
import java.util.Map;


/**
 * DAO
 * @author fxz
 */
public interface LogsticsMmodeDetailsMapper extends GenericDao<LogisticsMmodeDetails, String>  {

	/**
	 * 查询实体
	 * @author Jason
	 */
	List<LogisticsMmodeDetails> findLogisticsMmodeDetails(Map<String, Object> params);

	/**
	 * 查询单个实体
	 * @author Jason
	 */
	LogisticsMmodeDetails queryFirstByGuid(Map<String, Object> params);

	/**
	 * 新增实体
	 * @author Jason
	 */
	int insertLogisticsMmodeDetails(LogisticsMmodeDetails entity);

	/**
	 * 通过guid修改实体
	 * @author Jason
	 */
	int updateByGuid(LogisticsMmodeDetails entity);

	/**
	 * 通过LogisticsMmodeGuid删除数据
	 * @param logisticsMmodeDetails
	 * @return
	 */
	int deleteByLogisticsMmodeGuid(LogisticsMmodeDetails logisticsMmodeDetails);

	/**
	 * 批量新增详情
	 * @param list
	 * @return
	 */
	int insertLogisticsMmodeDetailsBatch(List<LogisticsMmodeDetails> list);

	/**
	 * 删除已有的详情数据
	 * @param params
	 * @return
	 */
	int deleteLogisticsMmodeDetailsMap(Map<String, Object> params);

}
